package com.sss.hloster0203;

public class Animal extends Organisms{
//属性
	private String animalname;
	private String animalColor;
	private String animalSex;

	// 构造方法
	public Animal() {
		super();
		System.out.println("执行Animal的默认构造方法");
	}

	public Animal(String animalname, String animalColor, String animalSex) {
		super();
		this.animalname = animalname;
		this.animalColor = animalColor;
		this.animalSex = animalSex;
	}

	// 行为
	public void doEating() {
		System.out.println(this.animalname + "  is  eating...");
	}

	public void doSleeping() {
         System.out.println(this.animalname+"  is  sleeping");
	}

	
	
	public String getAnimalname() {
		return animalname;
	}

	public void setAnimalname(String animalname) {
		this.animalname = animalname;
	}

	public String getAnimalColor() {
		return animalColor;
	}

	public void setAnimalColor(String animalColor) {
		this.animalColor = animalColor;
	}

	public String getAnimalSex() {
		return animalSex;
	}

	public void setAnimalSex(String animalSex) {
		this.animalSex = animalSex;
	}
	

}
